<?php

namespace api\controller;

// +----------------------------------------------------------------------
// | 控件数据控制层
// +----------------------------------------------------------------------

use common\controller\VerifyController;
use common\service\ProjectRelationTemplateTodoService;
use think\Request;

class ProjectRelationTemplateTodoController extends VerifyController
{
    public $projectRelationTemplateTodoService;

    public function __construct()
    {
        parent::__construct();
        $this->projectRelationTemplateTodoService = new ProjectRelationTemplateTodoService();
    }

    /**
     * 设置项目模板待办成员模板
     * @param Request $request
     * @return \think\Response|void
     * @throws \Exception
     */
    public function setMember(Request $request)
    {
        $param = $request->param();
        try {
            $res = $this->projectRelationTemplateTodoService->setMember($param['data']);
            return json(success_response("", $res));
        } catch (\LogicException $e) {
            throw_strack_exception($e->getMessage(), $e->getCode());
        }
    }
}
